/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author LYS
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface PmAcceptance extends BasicModel<PmAcceptance> {
  projectno?: string; // 项目编号
  projectname?: string; // 项目名称
  createDate?: string; // 发起时间
  createByName?: string; // 发起人（名称）
  createBy?: string; // 发起人（编码）
  remarks?: string; // 发起备注
  pername?: string; // 验收人名称
  perno?: string; // 验收人编码
  checkResult?: string; // 验收结果
  unqualified?: string; // 不合格描述
  launchtime?: string; // 验收日期
  fileno?: string; // fileno
  rectificationno?: string; // rectificationno
  unqualifiedfile?: string; // unqualifiedfile
  filecheck?: string; // filecheck
  wastepipe?: number; // wastepipe
  wastepipefile?: string; // wastepipefile
  fileid?: string; // fileid
}

export const pmAcceptanceList = (params?: PmAcceptance | any) =>
  defHttp.get<PmAcceptance>({ url: adminPath + '/accept/ance/pmAcceptance/list', params });

export const pmAcceptanceListData = (params?: PmAcceptance | any) =>
  defHttp.post<Page<PmAcceptance>>({ url: adminPath + '/accept/ance/pmAcceptance/listData', params });

export const pmAcceptanceForm = (params?: PmAcceptance | any) =>
  defHttp.get<PmAcceptance>({ url: adminPath + '/accept/ance/pmAcceptance/form', params });

export const pmAcceptanceSave = (params?: any, data?: PmAcceptance | any) =>
  defHttp.postJson<PmAcceptance>({ url: adminPath + '/accept/ance/pmAcceptance/save', params, data });

export const pmAcceptanceDelete = (params?: PmAcceptance | any) =>
  defHttp.get<PmAcceptance>({ url: adminPath + '/accept/ance/pmAcceptance/delete', params });

export const pmAcceptanceResultSave = (params?: any, data?: PmAcceptance | any) =>
  defHttp.postJson<PmAcceptance>({ url: adminPath + '/accept/ance/pmAcceptance/resultSave', params, data });